<style>#cxselectform textarea {
    margin: 10px 0;
}</style>
<div class="panel panel-default panel-intro">
    <div class="panel-heading">
        <div class="panel-lead">
            <em>多级联动</em>
            基于jquery.cxselect实现的多级联动
        </div>
    </div>
    <div class="panel-body">
        <div id="cxselect-example">
            <form id="cxselectform">

                <div class="row">

                    <div class="col-md-6">
                        <!--1/start-->
                        <div class="panel panel-default">
                            <div class="panel-heading"><strong>省市区联动</strong>(通过AJAX读取数据)</div>
                            <div class="panel-body">
                                <!--start-->
                                <div class="row">
                                    <div class="col-xs-9">
                                        <div class="form-inline" data-toggle="cxselect"
                                             data-selects="province,city,area">
                                            <select class="form-control province" name="province"
                                                    data-url="ajax/area"></select>
                                            <select class="form-control city" name="city" data-url="ajax/area"></select>
                                            <select class="form-control area" name="area" data-url="ajax/area"></select>
                                        </div>
                                    </div>
                                    <div class="col-xs-3 text-right">
                                        <h6><label class="label label-primary"><i class="fa fa-pencil"></i> 增加</label>
                                        </h6>
                                    </div>
                                    <div class="col-xs-12">
                                        <textarea class="form-control" rows="8"></textarea>
                                    </div>
                                </div>
                                <!--end-->
                                <!--start-->
                                <div class="row">
                                    <div class="col-xs-9">
                                        <div class="form-inline" data-toggle="cxselect" data-selects="province,city,area">
                                            <select class="form-control province" name="province" data-url="ajax/area">
                                                <option value="1964" selected>广东省</option>
                                            </select>
                                            <select class="form-control city" name="city" data-url="ajax/area">
                                                <option value="1988" selected>深圳市</option>
                                            </select>
                                            <select class="form-control area" name="area" data-url="ajax/area">
                                                <option value="1991" selected>南山区</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="col-xs-3 text-right">
                                        <h6><label class="label label-primary"><i class="fa fa-pencil"></i> 增加</label>
                                        </h6>
                                    </div>
                                    <div class="col-xs-12">
                                        <textarea class="form-control" rows="8"></textarea>
                                    </div>
                                </div>
                                <!--end-->
                            </div>
                        </div>
                        <!--1/end-->
                    </div>

                    <div class="col-md-6">
                        <!--2/start-->
                        <div class="panel panel-default">
                            <div class="panel-heading"><strong>类别联动</strong>(Ajax读取数据)</div>
                            <div class="panel-body">
                                <!--start-->
                                <div class="row">
                                    <div class="col-xs-9">
                                        <div class="form-inline" data-toggle="cxselect" data-selects="first,second">
                                            <select class="form-control first" name="first" data-url="ajax/category?type=page&pid=5"></select>
                                            <select class="form-control second" name="second" data-url="ajax/category" data-query-name="pid"></select>
                                        </div>
                                    </div>
                                    <div class="col-xs-3 text-right">
                                        <h6><label class="label label-primary"><i class="fa fa-pencil"></i> 增加</label>
                                        </h6>
                                    </div>
                                    <div class="col-xs-12">
                                        <textarea class="form-control" rows="8"></textarea>
                                    </div>
                                </div>
                                <!--end-->
                                <!--start-->
                                <div class="row">
                                    <div class="col-xs-9">
                                        <div class="form-inline" data-toggle="cxselect" data-selects="first,second">
                                            <select class="form-control first" name="first" data-url="ajax/category?type=page&pid=5">
                                                <option value="6" selected>网站建设</option>
                                            </select>
                                            <select class="form-control second" name="second" data-url="ajax/category" data-query-name="pid">
                                                <option value="8" selected>PC端</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="col-xs-3 text-right">
                                        <h6><label class="label label-primary"><i class="fa fa-pencil"></i> 增加</label>
                                        </h6>
                                    </div>
                                    <div class="col-xs-12">
                                        <textarea class="form-control" rows="8"></textarea>
                                    </div>
                                </div>
                                <!--end-->
                            </div>
                        </div>
                        <!--2/end-->
                    </div>

                    <div class="col-md-6">
                        <!--3/start-->
                        <div class="panel panel-default">
                            <div class="panel-heading"><strong>省市区联动</strong>(通过JSON渲染数据)</div>
                            <div class="panel-body">
                                <!--start-->
                                <div class="row">
                                    <div class="col-xs-9">
                                        <div class="form-inline" data-toggle="cxselect" data-url="__CDN__/assets/libs/fastadmin-cxselect/js/cityData.min.json"
                                             data-selects="province,city,area"  data-json-space=""  data-json-name="n" data-json-value="">
                                            <select class="form-control province" name="province"></select>
                                            <select class="form-control city" name="city"></select>
                                            <select class="form-control area" name="area"></select>

                                        </div>
                                    </div>
                                    <div class="col-xs-3 text-right">
                                        <h6><label class="label label-primary"><i class="fa fa-pencil"></i> 增加</label>
                                        </h6>
                                    </div>
                                    <div class="col-xs-12">
                                        <textarea class="form-control" rows="8"></textarea>
                                    </div>
                                </div>
                                <!--end-->
                                <!--start-->
                                <div class="row">
                                    <div class="col-xs-9">
                                        <div class="form-inline" data-toggle="cxselect" data-selects="province,city,area">
                                            <select class="form-control province" name="province" data-url="ajax/area">
                                                <option value="1964" selected>广东省</option>
                                            </select>
                                            <select class="form-control city" name="city" data-url="ajax/area">
                                                <option value="1988" selected>深圳市</option>
                                            </select>
                                            <select class="form-control area" name="area" data-url="ajax/area">
                                                <option value="1991" selected>南山区</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="col-xs-3 text-right">
                                        <h6><label class="label label-primary"><i class="fa fa-pencil"></i> 增加</label>
                                        </h6>
                                    </div>
                                    <div class="col-xs-12">
                                        <textarea class="form-control" rows="8"></textarea>
                                    </div>
                                </div>
                                <!--end-->
                            </div>
                        </div>
                        <!--3/end-->
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>

